<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			var str="hello,world";
			console.log(str.charAt(0));/*返回字符*/
			console.log(str.charCodeAt(0));/*返回字符编码*/
			console.log(String.fromCharCode(104));/*根据编码获取字符*/
		</script>
	</head>
	<body>
	</body>
</html>
